package com.stnet.entity;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;

/**
 * Roles entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Roles implements java.io.Serializable {

	// Fields

	private Long id;
	private String name;
	private Set<RolesAuthorities> rolesAuthoritieses = new TreeSet<RolesAuthorities>();
	private Set<UsersRoles> usersRoleses = new HashSet<UsersRoles>();
	private String state;
	
	private List<RolesAuthorities> raList = new ArrayList<RolesAuthorities>();
	
	private String type;
	// Constructors

	/** default constructor */
	public Roles() {
	}

	/** minimal constructor */
	public Roles(Long id, String name) {
		this.id = id;
		this.name = name;
	}

	/** full constructor */
	public Roles(Long id, String name, Set rolesAuthoritieses, Set usersRoleses) {
		this.id = id;
		this.name = name;
		this.rolesAuthoritieses = rolesAuthoritieses;
		this.usersRoleses = usersRoleses;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<RolesAuthorities> getRolesAuthoritieses() {
		return this.rolesAuthoritieses;
	}

	public void setRolesAuthoritieses(Set<RolesAuthorities> rolesAuthoritieses) {
		this.rolesAuthoritieses = rolesAuthoritieses;
	}

	public Set getUsersRoleses() {
		return this.usersRoleses;
	}

	public void setUsersRoleses(Set usersRoleses) {
		this.usersRoleses = usersRoleses;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public List<RolesAuthorities> getRaList() {
		return raList;
	}

	public void setRaList(List<RolesAuthorities> raList) {
		this.raList = raList;
	}
	

}